package com.slz3.business.module.configManagement.conIndexShowImg.steward;

import com.slz3.business.module.configManagement.conIndexShowImg.domain.ConIndexShowImg;
import com.slz3.business.module.configManagement.conIndexShowImg.domain.ConIndexShowImgCondition;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class ConIndexShowImgResponse {

    public static Mono<ServerResponse> add(ServerRequest req) {
        return req.bodyToMono(ConIndexShowImg.class).flatMap(conIndexShowImg ->
                ConIndexShowImgResController.add(req, conIndexShowImg)
        );
    }

    public static Mono<ServerResponse> delete(ServerRequest req) {
        return req.bodyToMono(ConIndexShowImgCondition.class).flatMap(conIndexShowImgCondition ->
                ConIndexShowImgResController.delete(req, conIndexShowImgCondition)
        );
    }

    public static Mono<ServerResponse> modify(ServerRequest req) {
        return req.bodyToMono(ConIndexShowImg.class).flatMap(conIndexShowImg ->
                ConIndexShowImgResController.modify(req, conIndexShowImg)
        );
    }


    public static Mono<ServerResponse> list(ServerRequest req) {
        return ConIndexShowImgResController.list(req);
    }

    public static Mono<ServerResponse> info(ServerRequest req) {
        return ConIndexShowImgResController.info(req);
    }

    public static Mono<ServerResponse> choice(ServerRequest req) {
        return ConIndexShowImgResController.choice(req);
    }

    public static Mono<ServerResponse> auditSubmit(ServerRequest req) {
        return req.bodyToMono(ConIndexShowImgCondition.class).flatMap(conIndexShowImgCondition ->
                ConIndexShowImgResController.auditSubmit(req, conIndexShowImgCondition)
        );
    }

    public static Mono<ServerResponse> audit(ServerRequest req) {
        return req.bodyToMono(ConIndexShowImgCondition.class).flatMap(conIndexShowImgCondition ->
                ConIndexShowImgResController.audit(req, conIndexShowImgCondition)
        );
    }

    public static Mono<ServerResponse> auditReject(ServerRequest req) {
        return req.bodyToMono(ConIndexShowImgCondition.class).flatMap(conIndexShowImgCondition ->
                ConIndexShowImgResController.auditReject(req, conIndexShowImgCondition)
        );
    }

    public static Mono<ServerResponse> usingEnable(ServerRequest req) {
        return req.bodyToMono(ConIndexShowImgCondition.class).flatMap(conIndexShowImgCondition ->
                ConIndexShowImgResController.usingEnable(req, conIndexShowImgCondition)
        );
    }

    public static Mono<ServerResponse> usingDisable(ServerRequest req) {
        return req.bodyToMono(ConIndexShowImgCondition.class).flatMap(conIndexShowImgCondition ->
                ConIndexShowImgResController.usingDisable(req, conIndexShowImgCondition)
        );
    }   

}
